package com.xxl.job.executor.config.listener;

import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 基于spring的发布者
 */
@Component
public class LearnMyPublisher {

  @Resource
  ApplicationEventPublisher applicationEventPublisher;

  public void publish(LearnMyEvent event) {
    applicationEventPublisher.publishEvent(event);
  }
}
